package com.lanou3g.code0408.constructor;

import java.util.Random;

/**
 * Created by dllo on 18/4/8.
 */
public class Main {
    public static void main(String[] args) {

        // 有多少种构造方法,就有多少种创建Dog的方法
        Dog dog = new Dog();
        //dog.setName("毛毛");
        dog.setAge(12);
        //Dog dog1 = new Dog();


        Cat cat = new Cat("毛豆");
        System.out.println(cat.getName());

        Mouse mouse = new Mouse("技嘉","红","蓝牙");
        Mouse mouse1 = new Mouse();
        mouse1.setBrand("雷蛇");
        mouse1.setColor("白");
        mouse1.setWay("有线");
        System.out.println(mouse1.getBrand());
    }
}
